package com.xt.itheima.d2_interface2;

public class Test {


    public static void main(String[] args) {
        Teacher s = new A();
        s.todo();
    }

}

class A extends Teacher implements Driver {
    @Override
    public void driver() {
        super.todo();
    }
}

class Teacher {
    void todo() {
        System.out.println("上课");
    }
}

interface Driver {
    void driver();
}
